<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<!-- <link rel="shortcut icon" href="/site_media/favicon.ico" type="image/x-icon"> -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>MaVReC</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link type="text/css" href="/site_media/css/normalize.css" rel="stylesheet">
<link type="text/css" href="/site_media/css/mavrec/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<link type="text/css" href="/site_media/css/mavrec/mavrec.css" rel="stylesheet">
<script type="text/javascript" src="/site_media/js/functions.js"></script>
<script type="text/javascript" src="/site_media/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="/site_media/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript">
	$(function(){
		// Button
		$( "input:submit, a, button", "" ).button();
		$( "a", ".demo" ).click(function() { return false; })     
		//hover states on the static widgets
		$('#dialog_link, ul#icons li').hover(
			function() { $(this).addClass('ui-state-hover'); }, 
			function() { $(this).removeClass('ui-state-hover'); }
		);           
	});
</script>
 
<script>
	$(function() {
		$( "#accordion" ).accordion({
			autoHeight: false,
			navigation: true,
			collapsible: true
		});
	});
</script>

{% block extrahead %} {% endblock extrahead %}

</head>

<body id="page-{% block page_id %}{% endblock %}">

	<div class="mv_outer">
		<div class="mv_header">

			<span class="logo"></span>
			
			<div class="mv_banner">
				<h1>MaVReC</h1>
				
				<div class="mv_banner_link">
					<a href="/smra/"></a>
				</div>
				
				<span class="page_login_disable">
					{% if user.is_authenticated %} 
						<a href="/smra/accounts/logout">Log Out</a> 
					{% else %} 
						<a href="/smra/accounts/login"> Log In</a> 
					{% endif %} 
				</span>
				
				<h3> 
					{% if user.is_authenticated %} 
						Welcome, {{ user.username }}. 
					{% endif %} 
				</h3>
			</div>

			<div class="mv_subheader">
				<span class="page_about_disable">
					<a href="{% url about %}">About</a>
				</span>
				<span class="mv_subheader_name">
					Media and Virtual Records Collections
				</span>
			</div>

			<div class="mv_menubar">

				<span class="page_collections_disable">
					<a href="{% url publicvirts %}">Collections</a>
				</span>

              
				<span class="page_objects_disable">
					<a href="{% url virt 0 %}">Objects</a>
				</span>
               


				{% if user.is_authenticated %}

				<span class="page_mine_disable">
					<a href="{% url virts %}">My Collections</a>
				</span>

                    {% if user.is_staff %}
					{% if not user.is_superuser  %}
				   
					<span>
						<a href="/smra/admin">Edit</a>
					</span>
				   
					{% else %}
				
					<span>
						<a href="/smra/admin">Administration</a>
					</span>
						<!-- only enabled in admin
						{% if deadlinks_num %}
						<span class="links">
							<a href="{% url deadlinks %}">Dead Links ({{deadlinks_num}})</a>
						</span>
						{% endif%} <!-- deadlinks -->

					{% endif %} <!-- superuser -->
	                {% endif %}			
    
				{% endif %} <!-- authenticated -->


			</div> <!-- menubar -->

		</div> <!-- header -->

		<div class="colmask content">	
		<div class="colmid">
		<div class="colleft">

			<div class="col1wrap">
				<div class="middle">
				<div class="messages">
					{% block messages %} {% endblock messages %}	
					
					{% if messages %}
					{% for message in messages %}
						{% if message.tags %}
    					<div class='{{message.tags}}'><span>{{message}}</span></div>
    					{% else %}
    					<div class="message"><span>{{message}}</span></div>
    					{% endif %}
					{%endfor %}
					{% endif %}
				</div> <!-- messages -->		
				
				<div class="main">
					{% block main %} {% endblock main %}				
				</div>  <!-- main -->			
			</div> <!--  middle -->
			</div> <!-- col1wrap -->

			<div class="leftbar">
				{% block leftbar %} {% endblock leftbar %}
			</div> <!--  leftbar  -->
			
			<div class="rightbar">
				{% block rightbar %} {% endblock rightbar %}
			</div> <!--  rightbar  -->
			
		</div> <!-- colleft -->
		</div> <!-- colmask -->
		</div> <!-- content -->

		<div class="mv_footer">
			<!-- sample text -->
			<span class="mv_copyright">Copyright &copy; RMIT, 2011</span>
		</div> <!--  footer -->

	</div> <!-- outer -->
</body>
</html>